﻿create PROCEDURE Sync.SP_VacationYearDays_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[VacationYearDayID],
		g.[VacationYearID],g.[Day],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[VacationYearDays] g RIGHT JOIN Sync.VacationYearDays_Tracking t  
    ON t.VacationYearDayID = g.VacationYearDayID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END











